package org.huntaway.hibernate;

import java.io.File;

/**
 * Hello world!
 * 
 */
public class App {
	public static void main(String[] args) {
		App app = new App();
		app.delJar();
	}

	private void delJar() {
		File rootDir = new File("I:\\jskyme\\com.focoon");
		for (File file : rootDir.listFiles()) {
			delJar(file);
		}
	}

	private void delJar(File rootfile) {
		if (rootfile.isDirectory()) {
			for (File file : rootfile.listFiles()) {
				delJar(file);
			}
		} else {
			if (rootfile.getName().endsWith(".jar")) {
				System.out.println("del File " +rootfile.getPath()+ ":"+rootfile.getName() + "["
						+ rootfile.delete() + "]");
			}
		}
	}
}
